header = function() {
    return {
      setProject: function(json) {
          $('#projectName').html(json.project.name);
          $('#nav-tasks').show();
          if(json.project.use_tests) {
              $('#nav-tests').show();
          }
          else {
              $('#nav-tests').hide();
          }
      },
      setNoProject: function() {
          $('#nav-tasks').hide();
          $('#nav-tests').hide();
      }
    };
}();